/*
 * Author: Alvin
 * Modified By: Alvin
 * Created Date: 2024-05-13 15:35:13
 * Last Modified: 2024-05-13 17:43:29
 * Description:
 */
class ServicesConfigModel {
  String serviceUrl;
  String serviceMethod;
  Map<String, dynamic> serviceParam;

  ServicesConfigModel({
    required this.serviceUrl,
    required this.serviceMethod,
    required this.serviceParam,
  });

  factory ServicesConfigModel.fromJson(Map<String, dynamic> json) {
    return ServicesConfigModel(
      serviceUrl: json['serviceUrl'] ?? '',
      serviceMethod: json['serviceMethod'] ?? '',
      serviceParam: json['serviceParam'] ?? {},
    );
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['serviceUrl'] = serviceUrl;
    data['serviceMethod'] = serviceMethod;
    data['serviceParam'] = serviceParam;
    return data;
  }
}
